<script  setup>
import {onBeforeMount, ref} from 'vue'
import { ElMessage } from 'element-plus'
import { Plus } from '@element-plus/icons-vue'

import axios from "axios";

const phone = ref('')

const username = ref('')

const adr_input = ref('')
const info_input = ref('')

onBeforeMount(()=>{

  axios.get("http://localhost:8090/getuserinfo").then((res) => {
    console.log(res)
    username.value=res.data
  })

})

</script>


<template>


<h1>欢迎你登录本系统：{{username}}</h1>


</template>


<style scoped>
.avatar-uploader .avatar {
  width: 178px;
  height: 178px;
  display: block;
}
</style>

<style>
.avatar-uploader .el-upload {
  border: 1px dashed var(--el-border-color);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--el-transition-duration-fast);
}

.avatar-uploader .el-upload:hover {
  border-color: var(--el-color-primary);
}

.el-icon.avatar-uploader-icon {
  font-size: 28px;
  color: #8c939d;
  width: 178px;
  height: 178px;
  text-align: center;
}
</style>